<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>账目列表 - 【妖精猫】后台</title>
<meta name="author" content="frankie" />

<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/list.js"></script>

<script type="text/javascript">
$().ready(function() {

	var $listForm = $("#listForm");
		
	var $storeSelect = $("#storeSelect");
	var $storeOption = $("#storeOption a");
	var $storeId = $("#storeId");
	
	// 店铺id
	$storeSelect.mouseover( function() {
		var $this = $(this);
		var offset = $this.offset();
		var $menuWrap = $this.closest("div.menuWrap");
		var $popupMenu = $menuWrap.children("div.popupMenu");
		$popupMenu.css({left: offset.left, top: offset.top + $this.height() + 2}).show();
		$menuWrap.mouseleave(function() {
			$popupMenu.hide();
		});
	});
	
	// 点击店铺id
	$storeOption.click( function() {
		var $this = $(this);
		$storeId.val($this.attr("val"));
		$listForm.submit();
		return false;
	});
	
	[@flash_message /]

});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.jhtml">${message("admin.path.index")}</a>
		&raquo; 小号检测
	</div>
	<form id="listForm" action="judge.jhtml" method="get">
		
		<div class="bar">
			
			<div class="buttonWrap">
				<div class="menuWrap" style="height: 28px;line-height: 28px;padding-left: 10px;float:left;">小号昵称：<input type="text" name="name" value="[#if (item.name)??]${item.name}[/#if]" /></div>
				<div class="menuWrap" style="height: 28px;line-height: 28px;padding-left: 10px;float:left;">对方QQ：<input type="text" name="qq" value="[#if (item.qq)??]${item.qq}[/#if]" /></div>
			</div>
			
			<input type="hidden" value="${item.storeId}" id="storeId" name="storeId">
			<div class="menuWrap">
				<a href="javascript:;" id="storeSelect" class="button">
					[#if item.storeId == '']店铺名称[#elseif item.storeId == 1]贾斯特曼[#elseif item.storeId == 2]真丶性情[#elseif item.storeId == 3]真性情商城[#elseif item.storeId == 4]胡佩刚[/#if]
					<span class="arrow">&nbsp;</span>
				</a>
				<div class="popupMenu">
					<ul id="storeOption">
						<li>
							<a href="javascript:;"[#if item.storeId == ''] class="current"[/#if] val="">全部</a>
						</li>
						<li>
							<a href="javascript:;"[#if item.storeId == '1'] class="current"[/#if] val="1">贾斯特曼</a>
						</li>
						<li>
							<a href="javascript:;"[#if item.storeId == '2'] class="current"[/#if] val="2">真丶性情</a>
					</li>
						<li>
							<a href="javascript:;"[#if item.storeId == '3'] class="current"[/#if] val="3">真性情商城</a>
						</li>
						<li>
							<a href="javascript:;"[#if item.storeId == '4'] class="current"[/#if] val="4">胡佩刚</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		
		<div class="buttonWrap">
			<div class="menuWrap" style="height: 28px;line-height: 28px;padding-left: 10px;float:left;"><input type="submit" value="提交"></div>
			<div class="menuWrap" style="height: 28px;line-height: 28px;padding-left: 10px;float:left;"><span style="color:red;">${errorMsg}</span></div>
		</div>
		
		<table id="listTable" class="list">
			<tr>
				<th>
					<span>用户名</span>
				</th>
				<th>
					<span>QQ</span>
				</th>
				<th>
					<span>状态</span>
				</th>
			</tr>
			
			<tr>
				<td>
					<span>${item.name}</span>
				</td>
				<td>
					<span>${item.qq}</span>
				</td>
				<td>
				[#if (canSave)??]
					[#if canSave]<span style="color:green;">可以继续刷单操作！</span>[#else]<span style="color:red;">不能进行刷单操作！</span>[/#if]
				[/#if]
				</td>	
			</tr>
		</table>
		
	</form>
</body>
</html>